package com.db.device.controller;

import com.db.core.vo.PageResult;
import com.db.device.dto.DevicePageDto;
import com.db.device.entity.Device;
import com.db.device.service.DeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 设备表 前端控制器
 * </p>
 *
 * @author vodka
 * @since 2023-10-30
 */
@RestController
@RequestMapping("/device")
@CrossOrigin
public class DeviceController {

    @Autowired
    private DeviceService deviceService;

    //分页
    @PostMapping("/page")
    public PageResult page(@RequestBody DevicePageDto devicePageDtod){
        return deviceService.page(devicePageDtod);
    }







}
